package org.jeecg.modules.score.service.impl;

import org.jeecg.modules.score.entity.AstuStudentScore;
import org.jeecg.modules.score.mapper.AstuStudentScoreMapper;
import org.jeecg.modules.score.service.IAstuStudentScoreService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**
 * @Description: 个人分数
 * @Author: jeecg-boot
 * @Date:   2021-09-25
 * @Version: V1.0
 */
@Service
public class AstuStudentScoreServiceImpl extends ServiceImpl<AstuStudentScoreMapper, AstuStudentScore> implements IAstuStudentScoreService {

    @Resource
    private  AstuStudentScoreMapper astuStudentScoreMapper;

    @Override
    public void updateScoreById(String stuNumber, String experimentId, String score) {
        astuStudentScoreMapper.updateScoreByStuNumberAndExperimentId(stuNumber,experimentId,score);
    }

    @Override
    public AstuStudentScore selectByStuNumberAndcourseId(String stuNumber, String courseId) {
        return astuStudentScoreMapper.selectByStuNumberAndcourseId(stuNumber, courseId);
    }

    @Override
    public AstuStudentScore selectInfoByStuNumAndExperimentNum(String stuNumber, String experimentSerialNumber) {
        return astuStudentScoreMapper.selectInfoByStuNumAndExperimentNum(stuNumber, experimentSerialNumber);
    }

}
